package com.railway.common.constants;

public class SysConstant {
 private static String video_head_upload_path = "upload";
	private static String news_head_upload_path = "upload";
	private static String news_upload_path = "newscontent";
	private static String msg_upload_path = "upload";
	private static String video_upload_path = "upload";
	private static String address_upload_path = "address";
	private static String duty_upload_path = "duty";

	/**
	 * 谁呼叫部门人员列表：消息/其他地方
	 */
	public static final String USER_CALL_TYPES = "userCallTypes";
	public static final String USER_CALL_TYPES_MSG = "M";
	public static final String USER_CALL_TYPES_CATEGORY = "C";
	
	/**
	 * 部门账号类型
	 */
	
	public static final String ID_TYPE_DEPT = "1";//部门虚拟用户
	
	public static final String ID_TYPE_PERSON = "0";//真实用户
	
	
	
	//系统中的明确空值
	public static final String SYS_EMPTY_VALUE = "EMPTY";
	
	public static final String FILE_TYPE_DUTY = "DUTY";
	public static final String FILE_TYPE_ADDRESS = "ADDRESS";
	public static final String FILE_TYPE_PAYMENT = "PAYMENT";
	public static final String CATEGORY_TYPE_NEWS = "NEWS";
	public static final String CATEGORY_TYPE_NEWS_HEAD = "NEWS_HEAD";
	public static final String USER_SESSIONS = "sessions";
	public static final String MSG_ID = "msgId";
	public static String SYS_NAME = "北京车辆段";//
	public static String ADMIN_SYS_TITLE = "北京车辆段后台管理系统";//
	public static String USER_ID = "userId";
	
	/**
	 * 栏目类型 
	 */
	public static String CATEGORY_TYPE_SOFTWARE_MANAGEMENT = "SOFT";
	public static String CATEGORY_TYPE_PHOTO_MANAGEMENT = "PHOTO";
	public static String CATEGORY_TYPE_MSG_MANAGEMENT = "MSG";
	public static String CATEGORY_TYPE_VIDEO_MANAGEMENT = "VIDEO";
	private static String payment_upload_path ="payment";
	public static String CATEGORY_TYPE_VIDEO_MANAGEMENT_HEAD = "VIDEO_HEAD";
	
	public static String getMsgUploadPath() {
		return msg_upload_path;
	}

	public static void setMsgUplaodPath(String p) {
		msg_upload_path = p;
	}

	public static String getVideoUploadPath() {
		return video_upload_path;
	}

	public static void setVideoUplaodPath(String p) {
		video_upload_path = p;
	}
	public static String getUploadPath(String db) {

		if (CATEGORY_TYPE_SOFTWARE_MANAGEMENT.equals(db)) {
			return video_upload_path;
		} else if (CATEGORY_TYPE_MSG_MANAGEMENT.equals(db)) {
			return msg_upload_path;
		} else if (CATEGORY_TYPE_NEWS.equals(db)) {

			return news_upload_path;

		}else if (CATEGORY_TYPE_NEWS_HEAD.equals(db)) {

			return news_head_upload_path;

		}else if (FILE_TYPE_ADDRESS.equals(db)) {

			return address_upload_path;

		} else if (FILE_TYPE_DUTY.equals(db)) {

			return duty_upload_path;

		} else if (FILE_TYPE_PAYMENT.equals(db)) {

			return payment_upload_path ;

		}else if(CATEGORY_TYPE_VIDEO_MANAGEMENT_HEAD.equals(db)){
			return video_head_upload_path;
		}else{
			return msg_upload_path;
		}
	}
}
